package com.china.milkywayeye.rasberryPi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.china.milkywayeye.rasberryPi.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {
    @Select("select * from user")
    List<User> getUsers();

    @Select("select * from user where account=#{account} and password=#{password}")
    User findUser(String account, String password);
}
